<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/piaoyi.tld" prefix="piaoyi"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>票易信息管理系统</title>
<link rel="stylesheet" href="/css/admin.css" type="text/css"/>
<script type="text/javascript" src="/js/jquery-1.6.1.min.js"></script>
</head>
<body leftmargin="2" topmargin="2">
<fieldset><legend>场次管理-当前票务信息：</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr class="tdbg3" align="left"> 
    <td>
    	<s:url action="admin_goods" id="goodsurl" />
    	<s:url action="admin_daily?goodsId=${goods.id}" id="dailyurl" />
    	名称:<s:property value="goods.name"/> | <a href="${goodsurl}">返回票务</a> 
    	时间:
    	<s:if test="daily.limitTime==0">
      	不限时间
        </s:if>
        <s:else>
    	  <piaoyi:dailyTime value="daily"/> 
        </s:else>	
    	| <a href="${dailyurl}">返回场次</a>
    </td>
    </tr>
</table>
</fieldset>
<s:url action="admin_price?action=add&goodsId=${goodsId}&dailyId=${dailyId}" id="priceaddurl" />
<fieldset><legend>价格管理：[<a href="${priceaddurl}">添加价格</a>]</legend>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <COLGROUP>
  <COL width="*" />
  <COL width="200" />
  <COL width="200" />
  <COL width="200" />
  <tr style="font-weight: bold;" align="center" class="tdbg2"> 
    <td>名称</td>
    <td>价格</td>
    <td>数量</td>
    <td>管理操作</td>
  </tr>
<s:iterator id="pl" value="%{priceList}">
<s:url action="admin_price?action=del&id=${pl.id}" id="pricedelurl" />
<s:url action="admin_price?action=update&id=${pl.id}" id="priceupdateurl" />
    <tr class="tdbg3" align="center"> 
      <td><s:property value="#pl.name"/></td>
      <td><s:property value="#pl.price"/></td>
      <td><s:property value="#pl.goodsNumber"/></td>
      <td>
      <a href="${priceupdateurl}">修改</a> | 
      <a href="${pricedelurl}" onclick="{if(confirm('执行此删除操作后该信息不能恢复，确定删除吗？')){return true;}return false;}">删除</a>
      </td>
    </tr>
</s:iterator>
</table>
</fieldset>
</body>
</html>
